import { RouteComponentProps } from 'react-router'

/**
 * 是否登录
 * @param props 路由参数
 * @returns
 */
export function requireLogin(props: RouteComponentProps): Boolean {
  const token = localStorage.getItem('token')
  return token ? true : false
}
